﻿using GWB.Core.Enum;
using GWB.Core.TableEntity.Common;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GWB.Core.TableEntity
{
    [SugarTable("GWB_Org")]
    public class Org: TenantEntity
    {
        [SugarColumn(ColumnDataType = "nvarchar(20)", ColumnDescription = "名字", IsNullable = true)]
        public string Name { get; set; }

        [SugarColumn(ColumnDataType = "nvarchar(300)", ColumnDescription = "备注", IsNullable = true)]
        public string Remarks { get; set; }

        [SugarColumn(ColumnDataType = "bit", ColumnDescription = "状态 0:禁用 1:启用", IsNullable = true)]
        public StateType State { get; set; }

        [SugarColumn(ColumnDataType = "bigint", ColumnDescription = "父级ID", IsNullable = false)]
        public long ParentId { get; set; }

        [SugarColumn(ColumnDataType = "varchar(3000)", ColumnDescription = "父级ID", IsNullable = false)]
        public string ParentChain { get; set; }
        /// <summary>
        ///(租户Id)
        /// </summary>
        [SugarColumn(ColumnDataType = "bigint", ColumnDescription = "集团Id(租户Id)", IsNullable = false)]
        public long TenantId { get; set; }

       
    }
}
